/*    */ package com.wzh.action.front;
/*    */ 
/*    */ import com.opensymphony.xwork2.ActionSupport;
/*    */ import com.wzh.bean.config.SiteConfigInfo;
/*    */ import com.wzh.utils.PropertiesUtil;
/*    */ 
/*    */ public class CommonAction extends ActionSupport
/*    */ {
/*    */   private static final long serialVersionUID = 1L;
/* 11 */   protected SiteConfigInfo siteInfo = new SiteConfigInfo();
/*    */   protected String template;
/*    */ 
/*    */   public String getTemplate()
/*    */   {
/* 17 */     return this.template;
/*    */   }
/*    */   public void setTemplate(String template) {
/* 20 */     this.template = template;
/*    */   }
/*    */   public SiteConfigInfo getSiteInfo() {
/* 23 */     return this.siteInfo;
/*    */   }
/*    */   public void setSiteInfo(SiteConfigInfo siteInfo) {
/* 26 */     this.siteInfo = siteInfo;
/*    */   }
/*    */ 
/*    */   public CommonAction() {
/* 30 */     PropertiesUtil util = new PropertiesUtil("config.properties");
/* 31 */     this.siteInfo.setProperties(util.getAllProperties());
/*    */ 
/* 33 */     this.template = ("WEB-INF/page/templates/" + this.siteInfo.getTemplate());
/*    */   }
/*    */ }

/* Location:           C:\work\apache-tomcat-7.0.55\webapps\ROOT\WEB-INF\classes\
 * Qualified Name:     com.wzh.action.front.CommonAction
 * JD-Core Version:    0.6.1
 */